﻿using System;
using System.Collections.Generic;
using System.IO.IsolatedStorage;
using System.Linq;
using System.Net;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Scheduler;
using PageNavigator;
using Telerik.Windows.Controls;

namespace Portfel
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            InteractionEffectManager.AllowedTypes.Add(typeof(Button));
            this.TStock.Buton.Click += StockButtonClicked;
            this.TPortfel.Buton.Click+=PortfelButtonClick;
            this.TWykresy.Buton.Click += WykresyClick;

        }

        private void WykresyClick(object sender, RoutedEventArgs e)
        {
            Navigator.Instance.Navigate<Wykres>();
        }

        private void PortfelButtonClick(object sender, RoutedEventArgs routedEventArgs)
        {
            Navigator.Instance.Navigate<MojePapiery>();
        }

        private void StockButtonClicked(object sender, RoutedEventArgs routedEventArgs)
        {
            Navigator.Instance.Navigate<Gielda>(1);
        }
      

    }
}